.PHONY:all
all:calserver calclient

LDFLAG=-DSELF=1

calserver:ServerMain.cc
	g++ -o $@ $^ $(LDFLAG) -std=c++14 -lpthread -ljsoncpp
calclient:ClientMain.cc
	g++ -o $@ $^ $(LDFLAG) -std=c++14 -ljsoncpp

.PHONY:clean
clean:
	rm -rf calserver calclient